/**
 * Copyright © 2011 looty - Textoo
 * @link http://www.textoo.org
 * @link http://code.google.com/p/textoo/
 * @author lab9 - Bertrand Larrieu
 * @mail lab9.fr@gmail.com
 * @version 2.0
 */

package org.looty.core.textoo.context.style 
{
	import flash.text.*;

	public class TextooFormat extends TextFormat
	{
		
		private var _textTransform		:String;
		
		public function TextooFormat(font:String=null, size:Object=null, color:Object=null, bold:Object=null, italic:Object=null, underline:Object=null, url:String=null, target:String=null, align:String=null, leftMargin:Object=null, rightMargin:Object=null, indent:Object=null, leading:Object=null, textTransform:Object = null) 
		{
			super(font, size, color, bold, italic, underline, url, target, align, leftMargin, rightMargin, indent, leading);
			
			this.textTransform = textTransform;
		}
		
		public function get textTransform():Object 
		{
			return _textTransform;
		}
		
		public function set textTransform(value:Object):void 
		{
			switch(String(value))
			{
				case TextTransform.CAPITALIZE:
				case TextTransform.UPPERCASE:
				case TextTransform.LOWERCASE:
					_textTransform = String(value);
				break;
					
				default:
					_textTransform = TextTransform.NONE;
			}
		}
		
	}

}